{$CLEO .cs}
{$USE CLEO+}
{$USE ini}

0000: NOP

script_name "DeathMod_R"

:Revive
wait 0
if
player.Defined($PLAYER_CHAR)
jf @Revive
00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@
get_random_char_in_sphere_no_save_recursive 0@ = random_char_near_point 1@ 2@ 3@ in_radius 50.0 find_next 1 pass_deads 1  
jf @Revive
if and
0E42: is_char_doing_task_id 0@ 212
044B:   actor 0@ on_foot
02A0:   actor 0@ stopped
not Actor.Animation(0@) == "GETUP"
not Actor.Animation(0@) == "GETUP_FRONT"
jf @Revive 
0E24: fix_char 0@ ground 1 brightness 1 and_fade_in 0 
0792: disembark_instantly_actor 0@
jump @Revive
